package projectUtils;

public class Point implements Comparable {
	public Integer x;
	public Integer y;
	
	public Point(Integer x, Integer y)
	{
		this.x = x;
		this.y = y;
	}
	
	@Override
    public boolean equals(Object arg0) {

        if(this.x.equals(((Point)arg0).x) && this.y.equals(((Point)arg0).y))
        {
                return true;
        }
        return false;
    }
	
	@Override 
	public int compareTo(Object arg0)
	{
		if (this.x - ((Point)arg0).x != 0)
			return this.x - ((Point)arg0).x;
		else
			return this.y - ((Point)arg0).y;
	}

	
}
